<style>
    #baseProject-edit .layui-form-item .layui-form-label {
        width:120px;
    }
    #baseProject-edit .layui-input-block {
        margin-left: 150px;
    }
    #baseProject-edit .layui-table .layui-form-select dl {
        text-align: left;
    }
</style>
<div class="febs-container" id="baseProject-edit">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="baseProject-edit-form">
            <div class="layui-form-item febs-hide">
                <label class="layui-form-label febs-form-item-require">项目id</label>
                <div class="layui-input-block">
                    <input type="text" name="projectId" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-xs6">
                        <label class="layui-form-label febs-form-item-require">项目类型：</label>
                        <div class="layui-input-block">
                            <select name="projectType" id="projectType" lay-search=""  lay-verify="required">
                            </select>
                        </div>
                    </div>
                    <div class="layui-col-xs6">
                        <label class="layui-form-label febs-form-item-require">项目区域：</label>
                        <div class="layui-input-block">
                            <select name="areaId"
                                    lay-verify="required"
                                    xm-select-direction="down"
                                    xm-select="project-area-select"
                                    xm-select-skin="default">
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-xs12">
                        <label class="layui-form-label febs-form-item-require">项目名称：</label>
                        <div class="layui-input-block">
                            <input type="text" name="projectName" autocomplete="off" class="layui-input" minlength="2"
                                   maxlength="90" lay-verify="required" placeholder="请输入中文项目名称">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-xs12">
                        <label class="layui-form-label febs-form-item-require">项目名称(英文)：</label>
                        <div class="layui-input-block">
                            <input type="text" name="projectNameEn" autocomplete="off" class="layui-input" minlength="2"
                                   maxlength="90" lay-verify="required" placeholder="请输入英文项目名称">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-xs6">
                        <label class="layui-form-label febs-form-item-require">开始时间：</label>
                        <div class="layui-input-block">
                            <input type="text" name="startDate" id="startDate" lay-verify="required"
                                   placeholder="请输入开始时间" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-col-xs6">
                        <label class="layui-form-label febs-form-item-require">结束时间：</label>
                        <div class="layui-input-block">
                            <input type="text" name="endDate" id="endDate" lay-verify="required"
                                   placeholder="请输入结束时间" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-xs6">
                        <label class="layui-form-label febs-form-item-require">项目负责人：</label>
                        <div class="layui-input-block layui-input-icon-container">
                            <input type="text" name="projectManageId" class="febs-hide">
                            <input type="text" name="projectManageName" autocomplete="off" id="inputAuto" class="layui-input"
                                   placeholder="请设置项目负责人" lay-verify="required">
                            <div class="layui-input-suffix" id="projectManage">
                                <i class="layui-icon layui-icon-add-1"></i>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs6">
                        <label class="layui-form-label febs-form-item-require">安全负责人：</label>
                        <div class="layui-input-block layui-input-icon-container">
                            <input type="text" name="safetyManageId" class="febs-hide">
                            <input type="text" name="safetyManageName" autocomplete="off" class="layui-input"
                                   placeholder="请设置安全负责人" id="inputAutoSafe" lay-verify="required">
                            <div class="layui-input-suffix" id="safetyManage">
                                <i class="layui-icon layui-icon-add-1"></i>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-row">
                    <label class="layui-form-label">其他关联人：</label>
                    <div class="layui-input-block">
                        <table lay-filter="projectUserTable" id="projectUserTable" lay-data="{id: 'projectUserTable'}"></table>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-xs12">
                        <label class="layui-form-label "></label>
                        <div class="layui-input-block">
                            <button type="button" class="layui-btn layui-btn-sm" id="addRelation">
                                <span class="layui-icon layui-icon-add-1" ></span>人员选择
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-form-item">
                    <div class="layui-col-xs6">
                        <label class="layui-form-label febs-form-item-require">项目状态：</label>
                        <div class="layui-input-block">
                            <input type="radio" name="status" title="在建" value="1" checked>
                            <input type="radio" name="status" title="已交付" value="2">
                        </div>
                    </div>
                    <div class="layui-col-xs6">
                        <label class="layui-form-label febs-form-item-require">排序：</label>
                        <div class="layui-input-block">
                            <input type="number" name="sort" value="1" autocomplete="off" class="layui-input"
                                   lay-verify="required">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item febs-hide">
                <button class="layui-btn" lay-submit="" lay-filter="baseProject-edit-form-submit" id="submit"></button>
                <button type="reset" class="layui-btn" id="reset"></button>
            </div>
        </form>
    </div>
</div>
<script type="text/html" id="project-user-option">
    <a lay-event="del" ><em class="layui-icon febs-edit-area febs-red">&#xe7f9;</em></a>
</script>
<script data-th-inline="javascript">
    var baseProjectData = [[${baseProject}]];
    var tenantId = [[${tenantId}]];
</script>
<script th:src="@{/febs/js/base/baseProject/baseProjectEdit.js(v=1)}"></script>